package com.myproject.thread.daemon;

public class Support extends Thread {

    @Override
    public void run() {

        Daemon daemon = new Daemon();
        daemon.setDaemon(true);
        daemon.start();

        for (int i=0;i<10;i++){
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println(Thread.currentThread() + " run "+i + " times");
        }
    }


}
